package com.tuangou.tuangouorder.order.service.impl;

import com.atguigu.common.utils.PageUtils;
import com.atguigu.common.utils.Query;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.tuangou.tuangouorder.order.dao.GroupGoodsDao;
import com.tuangou.tuangouorder.order.entity.GroupGoodsEntity;
import com.tuangou.tuangouorder.order.service.GroupGoodsService;
import org.springframework.stereotype.Service;

import java.util.Map;


@Service("groupGoodsService")
public class GroupGoodsServiceImpl extends ServiceImpl<GroupGoodsDao, GroupGoodsEntity> implements GroupGoodsService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<GroupGoodsEntity> page = this.page(
                new Query<GroupGoodsEntity>().getPage(params),
                new QueryWrapper<GroupGoodsEntity>()
        );

        return new PageUtils(page);
    }

}